package T.RunM;

import org.junit.Test;

/**
 * @author zhiqi.shao
 * @Date 2018/5/31 11:33
 */
public class TestDriver {

    @Test
    public void test1(){
        Driver<Buick> driver=new Driver();
        driver.drive(new Buick());

        Driver<Ford> driverf=new Driver();
        driverf.drive(new Ford());

        driver.getConveyance().autoRun();
        driverf.getConveyance().fly();

        Driver<Ford> driver1=new Driver();
        driver1.drive(new Ford());
        driver1.getConveyance().fly();

    }
}
